package chapter10;

/**
 * Created by V5470-I5 on 2016/4/10.
 */
import java.io.IOException;
import static java.lang.System.out;
public class MemberDemo {
    public static void main(String[] args) throws IOException{
        Member[] members={
                new Member("B1234","Messi",90),
                new Member("B1235","Messi1",90),
                new Member("B1236","Messi2",90),
        };
        for(Member member : members){
            member.save();
        }
        out.println(Member.load("B1234"));
        out.println(Member.load("B1235"));
        out.println(Member.load("B1236"));
    }
}
